<?php defined('_JEXEC') or die('Restricted access'); // no direct access ?>

<div id="prop_last">

<?php 

foreach ($items as $item) { 

$link 		= JRoute::_( 'index.php?option=com_properties&amp;view=property&amp;cid='.$item->catslug.'&amp;tid='.$item->typeslug.'&amp;id='.$item->slug);
?>

<div class="prop_last_uni">

	<div class="thumb">

<a href="<?php echo $link; ?>">
<?php
if($item->image1!=NULL){ $img=$item->image1;}else{$img='noimage.jpg';}
$destino_imagen = JPATH_SITE.DS.'images'.DS.'properties'.DS.'peques'.DS.'peque_'.$img;
?>
<img src="images/properties/peques/peque_<?php echo $img;?>" alt="<?php echo str_replace('"',' ',$item->name); ?>" border="0"  /></a>

            </div>

            <div class="thumb_shadow"></div>    

            

            <span><?php echo $NameCategory[$item->parent]; ?></span>
            <span> <?php echo $NameType[$item->type]; ?></span>
            <div class="latest_text"> <?php echo $item->name; ?></div>

</div>

 

    <?php } ?>

</div>

<div style="clear:both"></div>